/*
 * HalfMonitor.java
 * 
 * last update: 01.02.2010 by Florea Mihai
 * 
 * author:	Alec(panovici@elcom.pub.ro)
 * 			Florea Mihai(florea.mihai@gmail.com)
 * 
 * Obs:
 */


package engine;

/**
 * Helps tran's to find out which port is requesting re-calculations
 */

class HalfMonitor implements Monitor {
	TranGate target;
	int hint;

	HalfMonitor(Expression exp, TranGate target, int hint) {
		exp.addMonitor(this);
		this.hint = hint;
		this.target = target;
	}

	public void trigger() throws InterpretTimeException {
		target.trigger(hint);
	}
}
